package com.example.myapplication.model.mention

import android.text.Editable
import android.text.TextWatcher

/**
 * @description:
 *
 * @author: wangrongfeng
 *
 * @create: 2023-05-17 15:05
 **/
class AtTextWatcher : TextWatcher {
    override fun beforeTextChanged(p0: CharSequence?, p1: Int, p2: Int, p3: Int) {
    }

    override fun onTextChanged(p0: CharSequence?, p1: Int, p2: Int, p3: Int) {
        if(p2==0 && p3==1){
            p0?.let {
                if(it[it.length-1]=='@'){

                }
            }
        }
    }

    override fun afterTextChanged(p0: Editable?) {

    }
}